#!/bin/bash

gcc -o main main.c

if [ "$?" != "0" ]; then
	echo "build failed"
	exit
fi

gcc -o gen gen.c

if [ "$?" != "0" ]; then
	echo "build failed"
	exit
fi

./gen > in.gen

./main < in

